<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Uber.WebUI.Models.UserShowDisplay>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">    
    <script src="<%=Url.Content("~/Scripts/jquery.swfobject.1-0-5.min.js") %>" type="text/javascript" ></script>
    <script type="text/javascript">
    $(document).ready(function() {
     setInterval(function() {                 
                 $.get('<%=Url.Action("Index","Ping") %>');
                }, 1080000);

        $('#flashc').flash({            
            swf: '<%=Url.Content("~/Scripts/Nub.swf") %>',            
            flashvars:
                     {     
                         nubId: <%=Model.UserId %>,                    
                         name: '<%=Model.UserName %>',
                         cid: <%=Model.ClientId %>,
                         performer: '<%=Model.Performer %>',
                         buyUrl: '<%=Url.Action("Index", "BuyCredits") %>',
                         homeUrl: '<%=Url.Action("Index", "Home") %>',
                         conn: '<%=Model.MediaUrl %>'
                     },
                     
                     height: 900,
                     width: '100%'
        });
    });  
    </script>
    <div id="flashc">
    </div>
</asp:Content>
